project(RedisAuth)

# Todo 指向 hiredis 的 源码路径即可
set(HIREDIS_SRC /home/wujehy/devroot/cpp/3rd_libs/hiredis-1.0.0)

add_subdirectory(${HIREDIS_SRC} hiredis_SRC)
add_library(${PROJECT_NAME} STATIC RedisAuthPlugin.cpp AclDao.cpp AuthDao.cpp RedisTool.cpp)

target_link_libraries(${PROJECT_NAME}  hiredis )


add_executable(test_redis test_redis.cpp ../Logger.cpp ../Common.cpp)

target_link_libraries(test_redis ${PROJECT_NAME})